package com.gifts.ui.page.selectafriend;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;
/**
 * UI Widget class for SearchPanel
 * @author dmaung
 *
 */
public class JSearchPanel  extends JPanel {
	
	private JTextField searchBoxTextField;
	
	private JButton submitButton;
	private JButton showMore;
	private JButton clearButton;
	public JSearchPanel() {
		
		JPanel mainPanel = new JPanel();
		JPanel leftPanel = new JPanel();
		JPanel rightPanel = new JPanel();
		searchBoxTextField = new JTextField(20);
		showMore = new JButton("Show More");
		
		searchBoxTextField.setSize(800, 300);
		//searchBoxTextField.setSize(600, 100);
		submitButton = new JButton("Submit");
		
		
		leftPanel.add(searchBoxTextField);
		leftPanel.add(submitButton);
		
		rightPanel.add(showMore);
		//clearButton = new JButton("Clear");
		FlowLayout leftLayout = new FlowLayout();
		leftLayout.setAlignment(FlowLayout.LEFT);
		
		leftPanel.setSize(new Dimension(700,300));
		
		FlowLayout rightLayout = new FlowLayout();
		rightLayout.setAlignment(FlowLayout.RIGHT);
		rightPanel.setLayout(rightLayout);
		
		
		BorderLayout borderLayout = new BorderLayout();
	
		setLayout(borderLayout);
		add(leftPanel,BorderLayout.WEST);
		add(rightPanel,BorderLayout.EAST);
		add(rightPanel);
		//add(clearButton);
	}
	
	public JTextField getSearchBoxTextField() {
		return searchBoxTextField;
	}
	
	public JButton getSubmitButton() {
		return submitButton;
	}
	
	public JButton getShowMoreButton() {
		return showMore;
	}
	

}
